{* $Id$ *}
{include_core file="admin/lib/header.html" title="合伙人设备简报"}
<div class="page-header border-bottom clearfix">
    <h2 class="left">合伙人设备简报</h2>
    <a style="margin-top:5px; display:block; float:right;" href="{get_url()}&is_excel=1" class="btn btn-xs btn-success js_downList">导出EXCEL</a>
</div>

<div class="search-level1 clearfix">
    <form action="user/admin/dealer_brief" method="get">
        <input type="text" class="left" name="search_filter[mobile]" value="{$search_filter['mobile']}" placeholder="合伙人手机号">
        <button type="submit" class="btn btn-success btn-sm left">搜索</button>
    </form>
</div>

<!--start:列表-->
<table class="list-table">
    <!--<caption style="height:auto;">-->
    <!--<div style="margin-top:5px;">按类型：-->
    <!--<a href='{AnUrl("device/admin?status=$status&res_name=machine")}' {if $res_name == 'machine'} class="label label-primary" {else} class="label label-default" {/if}>保温箱</a>-->
    <!--<a href='{AnUrl("device/admin?status=$status&res_name=adbox")}' {if $res_name == 'adbox'} class="label label-primary" {else} class="label label-default" {/if}>广告机</a>-->
    <!--<a href='{AnUrl("device/admin?status=$status&res_name=ibeacon")}' {if $res_name == 'ibeacon'} class="label label-primary" {else} class="label label-default" {/if}>外置摇一摇</a>-->
    <!--<a href='{AnUrl("device/admin?status=$status&res_name=game_table")}' {if $res_name == 'game_table'} class="label label-primary" {else} class="label label-default" {/if}>游戏桌</a>-->
    <!--</div>-->
    <!--</caption>-->
    <thead>
        <tr>
            <th>姓名</th>
            <th>用户名</th>
            <th>id</th>
            <th style="min-width: 60px">省份</th>
            <th style="min-width: 60px">市</th>
            <th style="min-width: 60px">县/区</th>
            <th>合伙人级别</th>
            <th>散装进货价格</th>
            <th>对应一级合伙人id</th>
            <th>对应一级合伙人姓名</th>
            <th>终端数量</th>
            <th>二代箱体绑定数量</th>
            <th>三代箱体绑定数量</th>
            <th>四代箱体绑定数量</th>
            <th>摇一摇模块数量</th>
            <th>液晶屏数量</th>
            <th>游戏桌数量</th>
        </tr>
    </thead>
    <tbody>
    {foreach $user_list as $k=>$v}
        <tr>
            <td>{$v.realname}</td>
            <td>{$v.user_name}</td>
            <td>{$v.id}</td>
            <td>{$v.province_name}</td>
            <td>{$v.city_name}</td>
            <td>{$v.county_name}</td>
            <td>{$v.dealer_level}</td>
            <td>{$v['price']}</td>
            <td>{if $v.parent_id}{$v.parent_id}{/if}</td>
            <td>{$v.parent_realname}</td>
            <td>{$v.store_count}</td>
            <td>{$v['device_count']['ZX']}</td>
            <td>{$v['device_count']['MX']}</td>
            <td>{$v['device_count']['FX']}</td>
            <td>{$v['device_count']['OS']}</td>
            <td>{$v['device_count']['AD']}</td>
            <td>{$v['device_count']['TA']}</td>
        </tr>
    {foreachelse}
    <tr><td class="txtleft" colspan="15">暂无数据</td></tr>
    {/foreach}
    </tbody>
</table>
{include_core file="admin/lib/pager.html"}
<!--end:列表-->
{load_js file='zclip/jquery.zclip.min.js'}
{load_js file='zclip/ZeroClipboard.js'}
{include_core file="admin/lib/footer.html"}
